<style>
.jy2-headertop {position: absolute;padding-top:0.3rem;padding-bottom:0.3rem;margin-top:-2rem;height:auto;border-top-right-radius:1rem;border-top-left-radius:1rem;}
.fui-header a.back:before {
	border-color: #fff
}
.fui-header:after {
	border-bottom: 0 solid #D9D9D9;
}
</style>
<link rel="stylesheet" href="../addons/jy_weishop/resource/css/rank.css">
<div class="fui-page page-rank yellow" style="overflow:auto;">
	<div class="topbg" style="position: relative;text-align:center;width:100%;height:4.5rem;background: {{main.syscolor || '#7c1cc9'}};">
			<div class="fui-header" style="background:none">
				<div class="fui-header-left">
					<a class="back" style="color:#fff" href="javascript:" ng-click="goback()"></a>
				</div>
				<div class="title bold" style="font-size:1rem;color:#fff">integral排名</div>
				<div class="fui-header-right" style="padding-right:0.5rem;color:#fff">
						<i class="icon jinyunicon icon-liaotian" ng-click="access_json('jy_weishop_en/member.index/')" style="font-size: 1rem;"></i>
				</div>
			</div>
  </div>
   <div class="fui-content jy2-headertop" style="padding-top: 0.7rem;background:#ff6a5c">
    <div class="rankhead">
		<div class="head">
			<div class="child">
				<span>{{pagedata.item.week_credit}}</span>
				<p class="text">本周integral</p>
			</div>
			<div class="child gold bold">
				<span style="color: #fef31f;font-size:1rem">{{pagedata.item.rank}}</span>
				<p class="text">我的名次</p>
			</div>
			<div class="child">
				<span>{{pagedata.item.credit1}}</span>
				<p class="text">总integral</p>
			</div>
		</div>
		<div class="title">integral排名为每小时自动更新</div>
	</div>
	<div class="rankline">
		<div class="left"></div>
		<div class="right"></div>
		<div class="center"></div>
	</div>
	<div class="ranklist">
		<div class="main">
			<div class="line title">
				<div class="col">排名</div>
				<div class="col">昵称</div>
				<div class="col">integral</div>
			</div>

			<div id="container" >
				<div class="line" ng-repeat="item in pagedata.list">
				 <div class="col">{{$index+1}}</div>
				 <div class="col">
					 <div class="face"><img ng-src="{{tomedia(item.avatar)}}" /></div>
					 <div class="name">{{item.nickname}}</div>
				 </div>
				 <div class="col index-1">{{item.credit1}}</div>
			 </div>
			</div>
			<a id="loadmore" class="btn btn-default block" href="javascript:" ng-click="tool.get_list('jy_weishop_en/member.rank/getlist/');">点击加载更多</a>
		</div>
	</div>
</div>
</div>
<script>
scope.tool.get_list('jy_weishop_en/member.rank/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop_en/member.rank/getlist/');
}
</script>